import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * User: Andrey
 * Date: 05.04.13
 * Time: 19:11
 * To change this template use File | Settings | File Templates.
 */
public class revers
{
    public static void main(String[] args)
    {
        int[] array = new int[] {1, 2, 3, 4, 6, 545, 47, 45};

        System.out.print("До Сортировки:    "+Arrays.toString(array)+"\n");

        int[] arrayRevers = arrayOut(array);

        System.out.print("После Сортировки: "+Arrays.toString(arrayRevers)+"\n");

    }
    public static int[] arrayOut(int[] input)
    {
        int[] out = new int[input.length];

        for(int i=0;i<input.length;i++)
        {
           out[i] = input[input.length-1-i];
        }
        return out;
    }
}
